-
-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] impersonate_login: Restrict Admin settings impersonation #730
[IMP] impersonate_login: Restrict Admin settings impersonation #730
Conversation
Hi @Kev-Roche, |
d9415df
to
6739552
Compare
@Kev-Roche what do you think? we don't want users to install modules while impersonating other users, but it can be made more generic/extendable if you wish. |
It is a good idea ! As you add a new feature, a short test will be nice. |
6739552
to
a028010
Compare
a028010
to
5895660
Compare
@Kev-Roche tests added, if you have any concerns or suggestions for improvement, please let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional ok!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review, LGTM
@Kev-Roche can you please merge? |
/ocabot merge patch |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at a2997f5. Thanks a lot for contributing to OCA. ❤️ |
This PR adds a configuration setting (
restrict_impersonate_admin_settings
) to exclude users with "Administration: Settings" rights to be impersonated. When enabled, only non-administrative users can be impersonated.